<template>
  <div class="add-to-do" :style="{ minHeight: minHeight }">
    <div class="add-to-do-card">
      <div class="card-title">待办事项</div>
      <div class="card-content">
        <el-input v-model="content" type="textarea" placeholder="添加更多待办信息"></el-input>
      </div>
    </div>
    <div class="add-to-do-time">
      <p>提醒时间</p>
      <div>
        <el-date-picker v-model="time" :editable="false" :clearable="false" change="date-picker" prefix-icon="none" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期时间"></el-date-picker>
        <i class="el-icon-arrow-right"></i>
      </div>
    </div>
    <div class="add-to-do-footer">
      <div class="btn">完成</div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      minHeight: '',
      time: '',
      content: ''
    }
  },
  created() {
    this.minHeight = window.screen.height + 'px'
  }
}
</script>
<style scoped lang='scss'>
.add-to-do {
  background: #fafafa;
  padding-top: 16px;
  box-sizing: border-box;
  &-card {
    background: #ffffff;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    padding-left: 16px;
    .card-title {
      height: 48px;
      line-height: 48px;
      font-size: 15px;
      font-weight: 500;
      color: rgba(44, 44, 44, 0.8);
      border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    }
    .card-content {
      min-height: 148px;
      padding: 12px 0;
    }
  }
  &-time {
    margin-top: 10px;
    padding: 15px 0 15px 16px;
    background: #ffffff;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    line-height: 40px;
    display: flex;
    justify-content: space-between;
    .el-icon-arrow-right {
      position: relative;
      left: -30px;
    }
  }
  &-footer {
    display: flex;
    justify-content: flex-end;
    .btn {
      width: 62px;
      height: 32px;
      background: #8bc14b;
      border-radius: 6px;
      font-size: 15px;
      font-weight: 400;
      color: #ffffff;
      line-height: 32px;
      text-align: center;
      margin-top: 26px;
      margin-right: 6px;
    }
  }
}
/deep/ .el-input--prefix .el-input__inner {
  border: none !important;
}
/deep/ .el-textarea__inner {
  border: none;
  padding: 0;
  min-height: 140px !important;
}
</style>
